package service;

import java.util.List;

import po.Diary;

/**
 * @author 曹桢瑞
 */
public interface DiaryService {
	/*
	 * ����userId��submitTime��ȡĳƪ��־
	 */
	public List<Diary> getDiaryInfo(String userId,long submitTime);
	/*
	 * ��ȡ�����num����־
	 */
	public List<Diary> getDiaryInfoByUserId(String userId,int num);
	/*
	 * ���һƪ��־
	 */
	public boolean addDiary(Diary diary);
	/*
	 * �Ƴ�ָ������־
	 */
	public boolean removeDiary(Diary diary);
	/*
	 * �޸�ָ����־
	 */
	public boolean updateDiary(Diary diary);
}
